<template>
    <div class="home">
      <mt-header :fixed="isFixed">
        <router-link to="/" slot="left">
          <div>锦嫚JinMan</div>
        </router-link>
        <router-link to="ShopCar" slot="right">
        <div class="shop-car iconfont">&#xe601;</div>
      </router-link>
      </mt-header>
      <div class="kong"></div>
      <div class="search">
            <input type="text" placeholder="请输入您要查找的旗袍">
        </div>
      <tab-bar></tab-bar>
      <mt-swipe class="swipe" :auto="2000">
          <mt-swipe-item><img class="lunbo" src="../../assets/img/images/banner1.jpg"></mt-swipe-item>
          <mt-swipe-item><img class="lunbo" src="../../assets/img/images/banner2.jpg"></mt-swipe-item>
          <mt-swipe-item><img class="lunbo" src="../../assets/img/images/banner3.jpg"></mt-swipe-item>
      </mt-swipe>
      <div class="situ">
        <img class="sige" src="../../assets/img/images/subnavIndex1.png">
        <img class="sige" src="../../assets/img/images/subnavIndex2.png">
        <img class="sige" src="../../assets/img/images/subnavIndex3.png">
        <img class="sige" src="../../assets/img/images/subnavIndex4.png">
      </div>
         <img class="heng" src="../../assets/img/images/tit1.jpg">
        <div class="box">
                <div class="product">
                        <img class="santu3" src="../../assets/img/images/product1.jpg" alt="">
                        <p>夹棉印花毛领旗袍</p>
                        <span class="money">￥328.00</span>
                        <span class="love">212</span>
                </div>
                <div class="product">
                        <img class="santu3" src="../../assets/img/images/product2.jpg" alt="">
                        <p>印花夹棉复古旗袍</p>
                        <span class="money">￥408.00</span>
                        <span class="love">143</span>
                </div>
                <div class="product">
                        <img class="santu3" src="../../assets/img/images/product3.jpg" alt="">
                        <p>秋冬新款金菊旗袍</p>
                        <span class="money">￥788.00</span>
                        <span class="love">332</span>
                </div>
            </div>
        <img class="heng" src="../../assets/img/images/tit2.jpg">
        <div class="box">
                <div class="product">
                        <img class="santu3" src="../../assets/img/images/product4.jpg" alt="">
                        <p>欧根纱蚕丝连衣裙</p>
                        <span class="money">￥258.00</span>
                        <span class="love">129</span>
                </div>
                <div class="product">
                        <img class="santu3" src="../../assets/img/images/product5.jpg" alt="">
                        <p>中式毛呢复古外套</p>
                        <span class="money">￥318.00</span>
                        <span class="love">358</span>
                </div>
                <div class="product">
                        <img class="santu3" src="../../assets/img/images/product6.jpg" alt="">
                        <p>混纺针织流苏背心</p>
                        <span class="money">￥228.00</span>
                        <span class="love">124</span>
                </div>
            </div>
         <img class="heng" src="../../assets/img/images/tit3.jpg">
         <div class="box">
                <div class="product">
                        <img class="santu3" src="../../assets/img/images/product7.jpg" alt="">
                        <p>夹克印花蚕丝旗袍</p>
                        <span class="money">￥289.00</span>
                        <span class="love">345</span>
                </div>
                <div class="product">
                        <img class="santu3" src="../../assets/img/images/product8.jpg" alt="">
                        <p>夹克印花刺绣旗袍</p>
                        <span class="money">￥278.00</span>
                        <span class="love">312</span>
                </div>
                <div class="product">
                        <img class="santu3" src="../../assets/img/images/product9.jpg" alt="">
                        <p>夹棉丝绒绣花旗袍</p>
                        <span class="money">￥258.00</span>
                        <span class="love">228</span>
                </div>
            </div>
          <img class="heng" src="../../assets/img/images/tit4.jpg">
        <div class="box">
                <div class="product">
                        <img class="santu3" src="../../assets/img/images/product10.jpg" alt="">
                        <p>夹克印花蚕丝旗袍</p>
                        <span class="money">￥289.00</span>
                        <span class="love">345</span>
                </div>
                <div class="product">
                        <img class="santu3" src="../../assets/img/images/product11.jpg" alt="">
                        <p>夹克印花刺绣旗袍</p>
                        <span class="money">￥278.00</span>
                        <span class="love">312</span>
                </div>
                <div class="product">
                        <img class="santu3" src="../../assets/img/images/product12.jpg" alt="">
                        <p>夹棉丝绒绣花旗袍</p>
                        <span class="money">￥258.00</span>
                        <span class="love">228</span>
                </div>
            </div>
          <img class="bei1" src="../../assets/img/images/banner5.jpg" alt="">
          <img class="bei2" src="../../assets/img/images/banner4.png" alt="">
          <div class="kong2"></div>
    </div>
</template>

<script>
    import TabBar from '../public/Public'
    export default {
        name: "Home",
        data(){
          return{
            isFixed:true,
          }
        },
        components:{
          TabBar
        }
    }
</script>

<style scoped>
  header{
    border-color: #111;
    background-color: #581513;
    color: #fff;
  }
  .home{
    position: relative;
  }
  .kong{
    height:40px;
    position: relative;
  }
  .kong2{
    height:36px;
  }
  .search{
    display: inline-block;
    position: absolute;
    top:10px;
    left: 30%;
    z-index: 1;
    border-radius: 10px;
  }
  .swipe{
    height:156px;
  }
  .lunbo{
    height:156px;
  }
  .situ{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    align-content: stretch;
    flex-wrap: nowrap;
    padding-top:20px;
    padding-left: 2px;
    padding-right:2px;
  }
  .sige{
    width:24%;
    display: block; 
  }
  .heng{
    width:100%;
    display: block;
    padding:10px;
  }
  .box{
    padding: 0 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    align-content: stretch;
    flex-wrap: nowrap;
  }
  .product{
    display: block;
    vertical-align: top;
    width: 100%;
    padding: 0px 2px;
    box-sizing: border-box;
  }
  .box.product p{
    display: block;
    text-align: justify;
    font-size: 11px;
    line-height: 20px;
    height: 20px;
    color: #fffefe;
  }
  .money{
    display: inline-block;
    vertical-align: top;
    font-size: 18px;
    height: 18px;
    line-height: 18px;
    -webkit-transform: scale(0.5);
    -webkit-transform-origin: top left;
    color: #f97104
  }
  .love{
    -webkit-transform: scale(0.5);
    -webkit-transform-origin: top right;
    float: right;
    color: #f6e0c2;
    position: absolute;
    bottom: 0;
    right: 0;
  }
  .santu3{
    width:100%;
    display: block;
  }
  .bei1{
    width:100%;
    display: block;
  }
  .bei2{
    width:100%;
    display:inline-block;
    padding-bottom: 20px;
  }
</style>
